//
//  UIViewController+XLExtension.h
//  DrugProphet
//
//  Created by 左学良 on 16/7/21.
//  Copyright © 2016年 左学良. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UIViewController (XLExtension)

- (void)buildNavLeftItemWithTitle:(NSString *)title action:(SEL)action;

- (void)buildNavRightItemWithTitle:(NSString *)title action:(SEL)action;

- (void)buildNavLeftItemWithImgName:(NSString *)imgName action:(SEL)action;

- (void)buildNavRightItemWithImgName:(NSString *)imgName action:(SEL)action;

- (void)buildNavRightItemWithImgName:(NSString *)imgName action:(SEL)action tag:(NSInteger)tag;

- (void)buildNavRightItemsWithImgName:(NSString *)imgName action:(SEL)action tag:(NSInteger)tag secondImgName:(NSString *)secondImgName secondAction:(SEL)secondAction;

- (void)buildNavRightItemsWithImgName:(NSString *)imgName action:(SEL)action secondImgName:(NSString *)secondImgName secondAction:(SEL)secondAction;

- (void)buildNavBackItemWithAction:(SEL)action;


/**
 *  创建导航返回按钮
 *
 *  @param sel 响应的方法
 */
- (void)barBackItemWithTarget:target sel:(SEL)sel;


@end
